package com.tianji.learning.task;

import com.tianji.learning.service.IPointsBoardService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class CreatePointsBoardTableTask {

    @Autowired
    private IPointsBoardService boardService;

    //@Scheduled(cron = "0 0 1 1 * ?")
    @XxlJob("createTableJob")
    public void createPointsBoardTable(){
        log.info("createPointsBoardTable task start");
        boardService.createPointsBoardTable();
    }
}
